﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace L2Tools.L2SSAdjuster
{
    public partial class Main : Form
    {
        #region Attribute
        private L2SSAdjusterManager manager;
        #endregion

        #region Constructor
        /// <summary>
        /// インスタンスを生成する。
        /// </summary>
        public Main()
        {
            InitializeComponent();
            manager = new L2SSAdjusterManager();
            manager.Show();
        }
        #endregion

        #region Method
        private void L2SSAjuster_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            if (manager.IsDisposed)
            {
                manager = new L2SSAdjusterManager();
                manager.Show();
            }
            else if (!manager.Visible)
            {
                manager.Visible = true;
                if (manager.WindowState == FormWindowState.Minimized)
                {
                    manager.WindowState = FormWindowState.Normal;
                }
            }
            manager.Activate();
        }
        #endregion

    }
}
